﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace Good.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class TestController : ControllerBase
    {
        
        private static int _count = 0;
        [HttpGet]
        public string Echo()
        {
            if (_count++ > 2)
            {
                Task.Delay(System.TimeSpan.FromSeconds(3)).GetAwaiter().GetResult();
            }
            return "这是Good的微服务";
        }
      
      


    }
}
